﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace SegGen
{
 
   public class Codon
    {
        /// <summary>
        /// number nucleotides in codon, by default will be 3.
        /// </summary>
        /// 

        public Codon()
        {
            m_codonNumNucleotides = 0;
        }

        private int m_codonNumNucleotides;




        public Codon(int numNucliotides)
        {
            if (numNucliotides <= 0) m_codonNumNucleotides = 3;
            else m_codonNumNucleotides = numNucliotides;
        }

        public int CodonNumNucleotides
        {
            get { return m_codonNumNucleotides; }
            set { m_codonNumNucleotides = value; }
        }
    }
}
